
using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class LocationAdvertisementBO : Csla.BusinessBase<LocationAdvertisementBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in LocationAdvertisementBO
			//AuthorizationRules.AllowRead(LocationAdvertisementDetailBOListProperty, "LocationAdvertisementBOReadGroup");
			//AuthorizationRules.AllowRead(LocationAdversitementIDProperty, "LocationAdvertisementBOReadGroup");
			//AuthorizationRules.AllowRead(LocationAdversitementNameProperty, "LocationAdvertisementBOReadGroup");
			//AuthorizationRules.AllowRead(IsActiveProperty, "LocationAdvertisementBOReadGroup");

			//AuthorizationRules.AllowWrite(LocationAdversitementNameProperty, "LocationAdvertisementBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsActiveProperty, "LocationAdvertisementBOWriteGroup");
		}

		protected static void AddObjectAuthorizationRules()
		{
			//TODO: Define object-level authorization rules of LocationAdvertisementBO
			//AuthorizationRules.AllowCreate(typeof(LocationAdvertisementBO), "LocationAdvertisementBOCreateGroup"));
			//AuthorizationRules.AllowEdit(typeof(LocationAdvertisementBO), "LocationAdvertisementBOEditGroup"));
			//AuthorizationRules.AllowDelete(typeof(LocationAdvertisementBO), "LocationAdvertisementBODeleteGroup"));
		}
		#endregion //Authorization Rules
		private void AssignParentKey(HousingInfo.DataLinQ.LocationAdversitement data)
		{
			//CHANGE_ME! //data.ParentId = ReadProperty<ParentBO>(ParentBOProperty).Id;
		}

	}
}
